<template>
  <footer class="footer">
    <nuxt-link v-for="menu in menus" :key="menu.href" class="menu" to="menu.href">{{menu.name}}</nuxt-link>
  </footer>
</template>

<script>
import { mapState } from 'vuex'

export default {
  data() {
    return {
      menus: [{
        name:'冰火人物',
        href:'/characters'
      },{
        name:'冰火家族',
        href:'/houses'
      },{
        name:'冰火商场',
        href:'/shopping'
      }]
    }
  }
}
</script>

<style scoped lang="less">
.footer {
  background:#efeff0;
  position: fixed;
  bottom: 0px;
  left: 0px;
  height: 50px;
  width: 100%;
  display: flex;
  a{
    flex: 1;
    text-align: center;
    line-height: 50px;
  }
}
</style>
